package ed.hbut.supermarket1.entity;

import lombok.*;

import java.math.BigDecimal;

@Setter
@Getter
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Merchandise {
    // Getters and Setters
    private Integer merchandiseId;
    private String merchandiseName;
    private BigDecimal merchandisePrice;
    private String merchandiseCategoryName;
    private String merchandiseState;
    private Integer merchandiseCategoryId; // 对应数据库中的 MerchandiseCategoryID 字段
    private Integer merchandiseGoodsId; // 对应数据库中的 MerchandiseGoodsID 字段

    public void setMerchandiseId(Integer merchandiseId) {
        this.merchandiseId = merchandiseId;
    }

    public void setMerchandiseName(String merchandiseName) {
        this.merchandiseName = merchandiseName;
    }

    public void setMerchandisePrice(BigDecimal merchandisePrice) {
        this.merchandisePrice = merchandisePrice;
    }

    public void setMerchandiseCategoryName(String merchandiseCategoryName) {
        this.merchandiseCategoryName = merchandiseCategoryName;
    }

    public void setMerchandiseState(String merchandiseState) {
        this.merchandiseState = merchandiseState;
    }

    public void setMerchandiseCategoryId(Integer merchandiseCategoryId) {
        this.merchandiseCategoryId = merchandiseCategoryId;
    }

    public void setMerchandiseGoodsId(Integer merchandiseGoodsId) {
        this.merchandiseGoodsId = merchandiseGoodsId;
    }

    public Integer getMerchandiseId() {
        return merchandiseId;
    }

    public String getMerchandiseName() {
        return merchandiseName;
    }

    public BigDecimal getMerchandisePrice() {
        return merchandisePrice;
    }

    public String getMerchandiseCategoryName() {
        return merchandiseCategoryName;
    }

    public String getMerchandiseState() {
        return merchandiseState;
    }

    public Integer getMerchandiseCategoryId() {
        return merchandiseCategoryId;
    }

    public Integer getMerchandiseGoodsId() {
        return merchandiseGoodsId;
    }

    @Override
    public String toString() {
        return "Merchandise{" +
                "merchandiseId=" + merchandiseId +
                ", merchandiseName='" + merchandiseName + '\'' +
                ", merchandisePrice=" + merchandisePrice +
                ", merchandiseCategoryName='" + merchandiseCategoryName + '\'' +
                ", merchandiseState='" + merchandiseState + '\'' +
                ", merchandiseCategoryId=" + merchandiseCategoryId +
                ", merchandiseGoodsId=" + merchandiseGoodsId +
                '}';
    }


}
